
/**
 * ======================================
 * 行踪管理列表
 * author: SKY-D
 * file: whereabouts-class.js
 * date: 2022/6/13 22:51
 * ======================================
 */
import baseClass from '@/list/baseClass'
import _ from 'lodash'
export default class whereaboutsClass extends baseClass {
  constructor(prop) {
    super(prop)
    this.index = _.get(prop, 'id', '')
    this.name = _.get(prop, 'user_info.real_name', '')
    this.idCard = _.get(prop, 'id_card', '')
    this.building = _.get(prop, 'building_info.name', '')
    this.entryTime = _.get(prop, 'created_time', '')
    this.remark = _.get(prop, 'note', '')
    this.UID = _.get(prop, 'UID', 0)
  }
  list() {
    return [
      {
        name: '姓名',
        key: 'name',
        fixed: '',
        edit: false,
        show: true,
        value: '100'
      },
      {
        name: '身份证',
        key: 'idCard',
        fixed: '',
        edit: false,
        show: true,
        value: '144'
      },
      {
        name: '访问楼宇',
        key: 'building',
        fixed: '',
        edit: false,
        show: true,
        value: ''
      },
      {
        name: '进入时间',
        key: 'entryTime',
        fixed: '',
        edit: false,
        show: true,
        value: '160'
      },
      {
        name: '备注',
        key: 'remark',
        fixed: '',
        edit: false,
        show: true,
        value: ''
      },
      {
        name: '操作',
        key: 'action',
        fixed: 'right',
        edit: false,
        show: true,
        value: 390
      }
    ]
  }
}
